package cn.tedu.spring.eg1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author lhd
 * date  2024/4/16
 * @apiNote
 */
@Component
public class Product {
    @Value("手机")
    private String title;
    @Value("1100")
    private Integer num;
    @Value("华为手机就是牛")
    private String comment;

    @Override
    public String toString() {
        return "Product{" +
                "title='" + title + '\'' +
                ", num=" + num +
                ", comment='" + comment + '\'' +
                '}';
    }
}
